
#include "def.h"
//icr: implied condition regression

//./icr input output

int main(int argc, char *argv[]){

//cout<<argc<<endl;
//cout<<argv[0]<<endl;
if(argc != 9){
   cout<<"Improperly called, use icr_wrapper.py"<<endl;
   exit(1);
 }

   string *iname,*oname,*pname,*piname;
   iname = new string(argv[1]);
   oname = new string(argv[2]);
   pname = new string(argv[3]);
   piname = new string(argv[4]);
   
if(atoi(argv[5]) == 1){
   //run it
   icr_mcmc mcmc((long)atoi(argv[7]),(long)atoi(argv[8]), *iname, *oname);
 //  icr_mcmc mcmc(300, 1000, *iname, *oname);
 //  icr_mcmc mcmc(50, 1000, *iname, *oname);
   mcmc.run();
}
if(atoi(argv[6]) == 1){
   //parse it
   icr_parser parser(*piname, *pname, *oname);
}
cout<<"completed"<<endl;
exit(0);
}
